#!/usr/bin/env python3

import argparse
import sys

from rosidl_typesupport_fastrtps_cpp import generate_cpp


def main(argv=sys.argv[1:]):
    parser = argparse.ArgumentParser(
        description='Generate the C++ interfaces for fastrtps.',
        formatter_class=argparse.ArgumentDefaultsHelpFormatter)
    parser.add_argument(
        '--generator-arguments-file',
        required=True,
        help='The location of the file containing the generator arguments')
    args = parser.parse_args(argv)

    generate_cpp(args.generator_arguments_file)


if __name__ == '__main__':
    sys.exit(main())
